package com.ruoyi.rsikManage.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rsikManage.mapper.AlarmSendingUrlMapper;
import com.ruoyi.rsikManage.domain.AlarmSendingUrlConfig;
import com.ruoyi.rsikManage.service.IAlarmSendingUrlService;

/**
 * 报警发往的urlService业务层处理
 *
 * @author ljw
 * @date 2023-11-06
 */
@Service
public class AlarmSendingUrlServiceImpl implements IAlarmSendingUrlService
{
    @Autowired
    private AlarmSendingUrlMapper alarmSendingUrlMapper;

    /**
     * 查询报警发往的url
     *
     * @param id 报警发往的url主键
     * @return 报警发往的url
     */
    @Override
    public AlarmSendingUrlConfig selectAlarmSendingUrlById(Integer id)
    {
        return alarmSendingUrlMapper.selectAlarmSendingUrlById(id);
    }

    /**
     * 查询报警发往的url列表
     *
     * @param alarmSendingUrlConfig 报警发往的url
     * @return 报警发往的url
     */
    @Override
    public List<AlarmSendingUrlConfig> selectAlarmSendingUrlList(AlarmSendingUrlConfig alarmSendingUrlConfig)
    {
        return alarmSendingUrlMapper.selectAlarmSendingUrlList(alarmSendingUrlConfig);
    }

    /**
     * 新增报警发往的url
     *
     * @param alarmSendingUrlConfig 报警发往的url
     * @return 结果
     */
    @Override
    public int insertAlarmSendingUrl(AlarmSendingUrlConfig alarmSendingUrlConfig)
    {
        return alarmSendingUrlMapper.insertAlarmSendingUrl(alarmSendingUrlConfig);
    }

    /**
     * 修改报警发往的url
     *
     * @param alarmSendingUrlConfig 报警发往的url
     * @return 结果
     */
    @Override
    public int updateAlarmSendingUrl(AlarmSendingUrlConfig alarmSendingUrlConfig)
    {
        return alarmSendingUrlMapper.updateAlarmSendingUrl(alarmSendingUrlConfig);
    }

    /**
     * 批量删除报警发往的url
     *
     * @param ids 需要删除的报警发往的url主键
     * @return 结果
     */
    @Override
    public int deleteAlarmSendingUrlByIds(Integer[] ids)
    {
        return alarmSendingUrlMapper.deleteAlarmSendingUrlByIds(ids);
    }

    /**
     * 删除报警发往的url信息
     *
     * @param id 报警发往的url主键
     * @return 结果
     */
    @Override
    public int deleteAlarmSendingUrlById(Integer id)
    {
        return alarmSendingUrlMapper.deleteAlarmSendingUrlById(id);
    }
}
